package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhuguanming
 * @description 二级分类Vo
 * @date 2021/5/27 22:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catalog2Vo {
    /**
     * 父分类 一级分类ID
     */
    private String catalog1Id;
    private String id;
    private String name;
    /**
     * 三级子分类集合
     */
    private List<Catalog3Vo> catalog3List;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static final class Catalog3Vo{
        // 父分类 二级分类ID
        private String catalog2Id;
        private String id;
        private String name;
    }
}
